package com.skd.common.constant;

public class OrderConstant {
    public static final String ORDER_TOKEN_PREFIX = "order:token";

    public static final String ROCKETMQ_ORDER_TOPIC = "ORDER_TOPIC";

    public static final String ROCKETMQ_SECKILL_ORDER_TOPIC = "SECKILL_ORDER_TOPIC";
    public enum OrderStateEnum{
        FOR_THE_PAYMENT(0,"待付款")
        ,TO_SEND_GOODS(1,"待发货")
        ,HAS_BEEN_SHIPPED(2,"已发货")
        ,HAS_BEEN_COMPLETED(3,"已完成")
        ,CLOSE(4,"已关闭")
        ,INVAILD_ORDERS(5,"无效订单");
        private int code;
        private String msg;
        OrderStateEnum(int code,String msg){
            this.code = code;
            this.msg = msg;
        }
        public int getCode(){
            return  code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
